home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 26.zip / BS1 part 26 / Aztec C v5.2a disk 4.adf / 204inc_i.lzh / hardware / blit.i < prev    next >
Text File  |  1991-03-14  |  2KB  |  107 lines

  1.     IFND    HARDWARE_BLIT_I
  2. HARDWARE_BLIT_I    SET    1
  3. **
  4. **    $Filename: hardware/blit.i $
  5. **    $Release: 2.04 $
  6. **    $Revision: 36.3 $
  7. **    $Date: 90/11/05 $
  8. **
  9. **    Defines for direct hardware use of the blitter.
  10. **
  11. **    (C) Copyright 1985,1986,1987,1988,1989,1990 Commodore-Amiga, Inc.
  12. **        All Rights Reserved
  13. **
  14.  
  15.     IFND    EXEC_TYPES_I
  16.     INCLUDE    "exec/types.i"
  17.     ENDC    ;EXEC_TYPES_I
  18.  
  19.  
  20.  
  21.    STRUCTURE bltnode,0
  22.    LONG  bn_n
  23.    LONG  bn_function
  24.    BYTE  bn_stat
  25.    BYTE  bn_dummy
  26.    WORD  bn_blitsize
  27.    WORD  bn_beamsync
  28.    LONG  bn_cleanup
  29.    LABEL bn_SIZEOF
  30.  
  31. * bit defines used by blit queuer
  32. CLEANMEn    equ 6
  33. CLEANME     equ 1<<CLEANMEn
  34.  
  35. * include file for blitter */
  36. HSIZEBITS   equ   6
  37. VSIZEBITS   equ   16-HSIZEBITS
  38. HSIZEMASK   equ   $3f          /* 2^6 -- 1 */
  39. VSIZEMASK   equ   $3FF          /* 2^10 - 1 */
  40.  
  41. * all agnii support horizontal blit of at least 1024 bits (128 bytes) wide */
  42. * some agnii support horizontal blit of up to 32768 bits (4096 bytes) wide */
  43.  
  44.     IFD    NO_BIG_BLITS
  45. MAXBYTESPERROW EQU   128
  46.     ENDC
  47.  
  48.     IFND    NO_BIG_BLITS
  49. MINBYTESPERROW EQU   128
  50. MAXBYTESPERROW EQU   4096
  51.     ENDC
  52.  
  53. * definitions for blitter control register 0 */
  54.  
  55. ABC        equ   $80
  56. ABNC        equ   $40
  57. ANBC        equ   $20
  58. ANBNC        equ   $10
  59. NABC        equ   $8
  60. NABNC        equ   $4
  61. NANBC        equ   $2
  62. NANBNC        equ   $1
  63.  
  64. BC0B_DEST   equ     8
  65. BC0B_SRCC   equ     9
  66. BC0B_SRCB   equ     10
  67. BC0B_SRCA   equ     11
  68. BC0F_DEST   equ   $100
  69. BC0F_SRCC   equ   $200
  70. BC0F_SRCB   equ   $400
  71. BC0F_SRCA   equ   $800
  72.  
  73. BC1F_DESC   equ 2
  74.  
  75. DEST        equ   $100
  76. SRCC        equ   $200
  77. SRCB        equ   $400
  78. SRCA        equ   $800
  79.  
  80. ASHIFTSHIFT equ   12 /* bits to right align ashift value */
  81. BSHIFTSHIFT equ   12 /* bits to right align bshift value */
  82.  
  83. * definations for blitter control register 1 */
  84. LINEMODE    equ   $1
  85. FILL_OR     equ   $8
  86. FILL_XOR    equ   $10
  87. FILL_CARRYIN   equ   $4
  88. ONEDOT        equ   $2
  89. OVFLAG        equ   $20
  90. SIGNFLAG    equ   $40
  91. BLITREVERSE equ   $2
  92.  
  93. SUD        equ   $10
  94. SUL        equ   $8
  95. AUL        equ   $4
  96.  
  97. OCTANT8     equ   24
  98. OCTANT7     equ   4
  99. OCTANT6     equ   12
  100. OCTANT5     equ   28
  101. OCTANT4     equ   20
  102. OCTANT3     equ   8
  103. OCTANT2     equ   0
  104. OCTANT1     equ   16
  105.  
  106.     ENDC    ; HARDWARE_BLIT_I
  107.